package ;

import flash.display.Sprite;
import flash.display.Bitmap;

/**
 * ...
 * @author test
 */
class Character extends Sprite {
	//The character bitmap.
	//TODO: Change to proper animation class.
	private var bitmap:Bitmap;

	//The enemy speed.
	private var speed:Float;

	//Flag that indicates if enemy is during dying animation.
	private var dying:Bool;

	//Getters and setters - BEGIN
	private function getSpeed():Float {
		return this.speed;
	}

	private function setSpeed(speed:Float):Void {
		this.speed = speed;
	}

	private function getDying():Bool {
		return this.dying;
	}

	private function setDying(dying:Bool):Void {
		this.dying = dying;
	}
	//Getters and setters - END

	//Constructor... nothing else to say here.
	public function new() {
		super();
		//THIS SHOULD BE A PARAMETER
		this.bitmap  = new Bitmap(Assets.getBitmapData("images/zombie.png"));
		this.addChild(this.bitmap);
		//THIS SHOULD BE A PARAMETER
		this.speed = 0.0;
		this.visible = false;
	}
}